package br.ucb.musicbay.album;

import java.util.List;

import br.ucb.musicbay.util.DAOFactory;

public class AlbumBO {
	AlbumInterfaceDao albumHibernate;
	
	public AlbumBO(){
		albumHibernate = DAOFactory.createAlbumDao();
	}
	
	public boolean save(Album album){
		album.setStatus(1);
		return this.albumHibernate.save(album);
	}
	
	public List<Album> recoverAll(){
		return this.albumHibernate.recoverAll();
	}
	
	public boolean delete(Album[] album){
		return this.albumHibernate.delete(album);
	}
	
	public List<Album> recoverAlbunsArtista(Integer idArtista) {
		return this.albumHibernate.recoverAlbunsArtista(idArtista);
	}
	
	public boolean update(Album album){
		return this.albumHibernate.update(album);
	}

	public Album recoverById(Integer id) {
		return this.albumHibernate.recoverById(id);
	}	
}
